#ifndef __TPM_H__
#define __TPM_H__

#define TPM0 0
#define TPM1 1
#define TPM2 2

#define TPM_CH0 0
#define TPM_CH1 1
#define TPM_CH2 2
#define TPM_CH3 3
#define TPM_CH4 4
#define TPM_CH5 5

int tpm_pwm_init(int tpm, int freq);
int tpm_pwm_duty(int tpm, int channel, int duty);
int tpm_cnt_init(int tpm);
uint16 tpm_cnt_read(int tpm);

#endif /* __TPM_H__ */
